/*
 * @Autor: 黄旗
 * @Date: 2020-06-02 17:47:27
 */
import BasicLayout from '@/layouts/basic-layout';

const meta = {
    auth: true
};

const pre = 'home-patient-';

export default {
    path: '/home/patient',
    name: 'home-patient',
    redirect: {
        name: `${pre}patientList`
    },
    meta,
    component: BasicLayout,
    children: [
        {
            path: 'publicList',
            name: `${pre}publicList`,
            meta: {
                ...meta,
                keepAlive: true,
                title: '公海列表'
            },
            component: () => import('@/pages/home/patient/publicList')
        },
        {
            path: 'detail',
            name: `${pre}detail`,
            meta: {
                ...meta,
                title: '患者详细'
            },
            component: () => import('@/pages/home/patient/patient-detail')
        },
        {
            path: 'serveList',
            name: `${pre}serveList`,
            meta: {
                ...meta,
                keepAlive: true,
                title: '客服列表'
            },
            component: () => import('@/pages/home/patient/serve-list')
        },
        {
            path: 'patientList',
            name: `${pre}patientList`,
            meta: {
                ...meta,
                keepAlive: true,
                title: '患者列表'
            },
            component: () => import('@/pages/home/patient/patient-list')
        },
        {
            path: 'allocation',
            name: `${pre}allocation`,
            meta: {
                ...meta,
                title: '患者分配'
            },
            component: () => import('@/pages/home/patient/distribution')
        },
        {
            path: 'transfer',
            name: `${pre}transfer`,
            meta: {
                ...meta,
                title: '客服回访列表'
            },
            component: () => import('@/pages/home/patient/transfer')
        }
    ]
};
